{% extends "employee/employee_base.html"%}
{% block currentPath %}
 >> <a href="/employee/products/">Products</a> >> <a href="/employee/products/edit/{{product.id}}">{{product.name}}</a> >> Inventory   
{% endblock %}

{% block content %}
   <div id="notice">{{message}}</div>
   <h2>{{product.name}} Inventory Manage</h2>
   <form action="" method="post">
   <p>Amount: <input type="text" name="amount" size="10" />
        <select name="changeType">
            <option value="add">Add to</option>
            <option value="change">Change</option>
        </select>
        <input type="submit" value="Change"/>
   </p>
   </form>
   <table width="500px" class="table-list" border=0 cellspacing=0 cellpadding=3>
    <tr align="center">
        <th>Inventory total</th><th>Available</th><th>History sales</th>
    </tr>
    <tr align="center">
        <td>{{product.inventory_records.total|default:0}}</td>
        <td>{{product.inventory_records.available|default:0}}</td>
        <td>{{product.inventory_records.sales_history|default:0}}</td>
    </tr>
   </table>
{% endblock %}